home *** CD-ROM | disk | FTP | other *** search
/ Washington DC Interactive / Washington DC Interactive CD-ROM.iso / pc / Media / refmap.dxr / 00030_UI Rollover and Mouse Down Pointer Change.ls < prev    next >
Encoding:
Text File  |  2000-10-09  |  3.2 KB  |  44 lines

  1. property outcurs, incurs, incursSet, customImage, customMask, customDownImage, customDownMask, incursDownSet, oldcursor, useCustom, useCustomDown
  2.  
  3. on translate_cursor me, setting, image, mask, Custom
  4.   if Custom then
  5.     set val to [member image, member mask]
  6.     return val
  7.   end if
  8.   return setting
  9. end
  10.  
  11. on beginSprite me
  12.   set oldcursor to the cursor of sprite the spriteNum of me
  13.   set val to translate_cursor(me, the incursSet of me, customImage, customMask, useCustom)
  14.   set the cursor of sprite the spriteNum of me to val
  15. end
  16.  
  17. on endSprite me
  18.   set the cursor of sprite the spriteNum of me to oldcursor
  19. end
  20.  
  21. on mouseDown me
  22.   set val to translate_cursor(me, the incursDownSet of me, customDownImage, customDownMask, useCustomDown)
  23.   set the cursor of sprite the spriteNum of me to val
  24. end
  25.  
  26. on mouseUpOutSide me
  27.   set val to translate_cursor(me, the incursSet of me, customImage, customMask, useCustom)
  28.   set the cursor of sprite the spriteNum of me to val
  29. end
  30.  
  31. on mouseUp me
  32.   set val to translate_cursor(me, the incursSet of me, customImage, customMask, useCustom)
  33.   set the cursor of sprite the spriteNum of me to val
  34. end
  35.  
  36. on getPropertyDescriptionList
  37.   set p_list to [#incursSet: [#comment: "Rollover Pointer Image:", #format: #cursor, #default: 1], #useCustom: [#comment: "Use Custom Pointer:", #format: #boolean, #default: 0], #customImage: [#comment: "Custom Image:", #format: #bitmap, #default: member 1], #customMask: [#comment: "Custom Mask:", #format: #bitmap, #default: member 1], #incursDownSet: [#comment: "Mouse Down Pointer Image:", #format: #cursor, #default: 1], #useCustomDown: [#comment: "Use Custom Pointer When Mouse Down:", #format: #boolean, #default: 0], #customDownImage: [#comment: "Custom Down Image:", #format: #bitmap, #default: member 1], #customDownMask: [#comment: "Custom Down Mask:", #format: #bitmap, #default: member 1]]
  38.   return p_list
  39. end
  40.  
  41. on getBehaviorDescription
  42.   return "Makes the pointer image change when the pointer is over the current sprite, also defines a different pointer image to display when the sprite is clicked. Choose any of the pointers included with Director or a 1-bit bitmapped cast member." & RETURN & "PARAMETERS:" & RETURN & "ΓÇó Rollover Pointer Image - Choose the pointer image to appear when the pointer rolls over the sprite. Select one of Director's included pointers." & RETURN & "ΓÇó Use Custom Pointer - Turn this option on to specify a cast member instead of an included pointer." & RETURN & "ΓÇó Custom Image  - ( optional ) Choose a cast member to use as the pointer image.  This choice is ignored unless Use Custom Pointer is on." & RETURN & "ΓÇó Custom Mask - ( optional ) Choose a cast member to use as a mask image.  " & RETURN & "ΓÇó Mouse Down Pointer Image - Choose one of Director's included pointers to be displayed when the mouse is down." & RETURN & "ΓÇó Use Custom Pointer When Mouse Down - Turn this option on to specify a cast member as the mouse down pointer instead of one of Director's included pointers." & RETURN & "ΓÇó Custom Down Image  - ( optional ) Choose a cast member to use as a pointer image when the mouse is down.  This setting is ignored unless Use Custom Pointer When Mouse Down is on." & RETURN & "ΓÇó Custom Down Mask - ( optional ) Choose a cast member to use as a mask image when mouse is down."
  43. end
  44.